<%@ page import="javax.naming.Context" %>
<%@ page import="javax.naming.InitialContext" %><%--
  Created by IntelliJ IDEA.
  User: 云哥
  Date: 2023/5/30
  Time: 9:30
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <h1>读取 tomcat conf目录下context.xml中的环境配置信息</h1>
  <%
    Context context=new InitialContext();
    Object envInfo = context.lookup("java:comp/env/t161");

  %>
  <h2>envInfo：<%=envInfo%></h2>
  </body>
</html>
